<template>
<div class="user">

    <component :is="route" />

</div>
</template>

<script>
import Login from './login/index.vue'
import UserInfo from '@/views/member/index'
export default {
    components: { Login, UserInfo },
    data () {
        return { }
    },
    computed: {
        route () {
            if (!this.$store.getters['user/userinfo'].token) return 'Login'
            return 'UserInfo'
        }
    }
}
</script>

<style lang="less" scoped>
.user {
    height: 100%;
}
</style>
